import request from "@/utils/request"
// 新增信息
export const DeliverInfo=(data)=>{return request.post('/newslist',data)}
// 删除信息
export const DelNewslist=(id)=>{return request.delete('/newslist/'+id)}
// 查询信息
export const GetNewslist=()=>{return request.get('/newslist')}
export const GetNewsListById=(id)=>{return request.get('/newslist/'+id)}
// 更新用户信息
export const UpdateNewsListById=(id,data)=>{return request.put('/newslist/'+id,data)}

// 注册
export const GoRegister=(data)=>{return request.post('/register',{data})}

// 用户管理
// 新增信息
export const AddUsersList=(data)=>{return request.post('/userslist',data)}
// 查询用户
export const GetUserList=()=>{return request.get('/userslist')}
export const GetUserListById=(id)=>{return request.get('/userslist/'+id)}
// 删除用户
export const DeleteUser=(id)=>{return request.delete('/userslist/'+id)}
// 更新用户信息
export const UpdateUserListById=(id,data)=>{return request.put('/userslist/'+id,data)}